#for循环输出九九乘法表
for i in range(1,10):
    for j in range(1,i+1):
        print("{}×{}={:<3}".format(j,i,i*j),end=' ')
    print('')
print('='*80)
for i in range(9,0,-1):
    for j in range(1,i+1):
        print("{}×{}={:<3}".format(j,i,i*j),end=' ')
    print('')
print('='*80)
k=8
for i in range(1,10):
    print(" "*k*10,end='')
    for j in range(1,i+1):
        print("{}×{}={:<5}".format(j,i,i*j),end='')
    k-=1
    print('')
print('='*80)
l=0
for i in range(9,0,-1):
    print(' '*l*10,end='')
    for j in range(1,i+1):
        print("{}×{}={:<5}".format(j,i,i*j),end='')
    l+=1
    print('')
